<!--{style}-->
.map_fullname{color:#E11054;font-weight:bold;font-size:16px;margin-bottom:5px;}
.map_item{margin-bottom:5px;font-size:12px;}
<!--{/style}-->

<div style="width:600px;height:450px;" id="container"></div>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=46ce9d0614bf7aefe0ba562f8cf87194&v=1.1&services=true">
</script>
<script type="text/javascript">
var map = new BMap.Map("container");
var point = new BMap.Point( <!--{$GLOBALS['_company_']['jiajucompany_baidumap']}--> );
map.addControl(new BMap.NavigationControl());
var marker = new BMap.Marker(point);
var opts = {
	width: 300,/* 信息窗口宽度 */
	height: 100,/* 信息窗口高度 */
	title: "<div class='map_fullname'><!--{$GLOBALS['_company_']['jiajucompany_fullname']}--></div>" /* 信息窗口标题 */
};

map.centerAndZoom(point, 15);
map.addOverlay(marker);

var infoWindow = new BMap.InfoWindow("<div class='map_item'>地址：<!--{$GLOBALS['_company_']['jiajucompany_address']|htmlspecialchars}--></div><div class='map_item'>电话：<!--{if $GLOBALS['_company_']['jiajucompany_telephone']}--><!--{$GLOBALS['_company_']['jiajucompany_telephone']|htmlspecialchars}--><!--{d*else}--><!--{$GLOBALS['_company_']['jiajucompany_telephone']}--><!--{/if}--></div><div class='map_item'>工作时间：<!--{$GLOBALS['_company_']['jiajucompany_worktime']|htmlspecialchars}--></div>", opts); /*  创建信息窗口对象 */
map.openInfoWindow(infoWindow, map.getCenter()); /* 打开信息窗口 */
map.enableScrollWheelZoom(); /* 启用滚轮放大缩小 */
map.enableKeyboard(); /* 启用键盘操作 */

marker.addEventListener("click",
function() {
	this.openInfoWindow(infoWindow);
});
</script>